<?php



/**
 * This class defines the structure of the 'w_lp_vv_WizPrac' table.
 *
 *
 *
 * This map class is used by Propel to do runtime db structure discovery.
 * For example, the createSelectSql() method checks the type of a given column used in an
 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
 * (i.e. if it's a text column type).
 *
 * @package    propel.generator.lp.map
 */
class LpEmployeesPositionsTableMap extends TableMap
{

    /**
     * The (dot-path) name of this class
     */
    const CLASS_NAME = 'lp.map.LpEmployeesPositionsTableMap';

    /**
     * Initialize the table attributes, columns and validators
     * Relations are not initialized by this method since they are lazy loaded
     *
     * @return void
     * @throws PropelException
     */
    public function initialize()
    {
        // attributes
        $this->setName('w_lp_vv_WizPrac');
        $this->setPhpName('EmployeesPositions');
        $this->setClassname('LpEmployeesPositions');
        $this->setPackage('lp');
        $this->setUseIdGenerator(false);
        // columns
        $this->addForeignPrimaryKey('NR_OS', 'LogoId', 'VARCHAR' , 'w_lp_vv_WizStan', 'LPLOGO', true, 15, null);
        $this->addColumn('ID_STAN', 'PositionId', 'VARCHAR', true, 30, null);
        $this->addForeignPrimaryKey('ID_JEDN', 'UnitId', 'VARCHAR' , 'w_lp_vv_WizJedn', 'ID_JEDN', true, 30, null);
        $this->addColumn('EMAIL', 'Email', 'VARCHAR', false, 200, null);
        // validators
    } // initialize()

    /**
     * Build the RelationMap objects for this table relationships
     */
    public function buildRelations()
    {
        $this->addRelation('Positions', 'LpPositions', RelationMap::MANY_TO_ONE, array('NR_OS' => 'LpLogo', ), null, null);
        $this->addRelation('Units', 'LpUnits', RelationMap::MANY_TO_ONE, array('ID_JEDN' => 'ID_JEDN', ), null, null);
        $this->addRelation('Employees', 'LpEmployees', RelationMap::ONE_TO_MANY, array('NR_OS' => 'LpLogo', ), null, null, 'Employeess');
    } // buildRelations()

} // LpEmployeesPositionsTableMap
